<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
	<head>
		<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" media="screen" />
		<script type="text/javascript" src="js/base/jquery.js"></script>
		<script type="text/javascript" src="js/plugins/jquery.cookie.js"></script>
		<script type="text/javascript" src="js/plugins/jqModal.js"></script>
		<script type="text/javascript" src="js/plugins/jqDnR.js"></script>
		<script type="text/javascript"
			src="js/powerFloat/js/jquery-powerFloat.js"></script>
		<script type="text/javascript" src="js/main.js"></script>
		<script type="text/javascript" src="js/userManager.js"></script>
		<jsp:include page="title.jsp"></jsp:include>
	</head>
	<body onload="addLoad();">
		<jsp:include page="head.jsp"></jsp:include>
		<form action="userAddSub" id="myForm" method="post">
		<div class="zhuti">
			<div class="jingediv"></div>
			<div class="lefterdiv">
				<jsp:include page="menu.jsp"></jsp:include>
			</div>
			<div class="jingediv"></div>
			<div class="righterdiv" id="right">
				<jsp:include page="chooseDataIndex.jsp" />
				<div class="sitebar">
					<div class="floatleft div25"></div>
					<div class="sitename top26">
						<span class="font24">用户管理</span>
					</div>
					<div class="date font14 top26">
						<script type="text/javascript">
							var date = new Date();
							document.write(date.getFullYear() + "-" + (date.getMonth() + 1) + "-"
									+ date.getDate());
							if (date.getHours() < 12) {
								document.write("上午");
							} else {
								document.write("下午");
							}
						</script>
					</div>
				</div>
				<div class="cleardiv"></div>
				<div class="widthall">
					<div class="title">
						<div class="floatleft div25"></div>
						<div class="titlename bold font24 top26">
							用户新增
						</div>
					</div>
					<div class="whitediv font16 em785">
						<div class="floatleft div25"></div>
						<div class="floatleft divcontent heigthall">
							<div class="em25"></div>
							<div class="em690">
								<div class="floatleft userziliao">
									<div class="em35 lineh35">
										<div class="floatleft graybar"></div>
										<div class="floatleft paddingL10">
											个人资料
										</div>
									</div>
									<div class="cleardiv"></div>
									<div class="em15"></div>
									<div class="widthall" style="padding: 1px 1px">
										<div class="divborder">
											<div class="em15"></div>
											<table class="indextable">
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle">
														用户名称：
													</td>
													<td class="userzljiange"></td>
													<td class="userinput">
														<input id="u_userName" type="text"
															name="userManagerInfo.userName" class="inputtext" maxlength="256" />
													</td>
													<td class="userzlkongbai"></td>
												</tr>
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle">
														用户角色：
													</td>
													<td class="userzljiange"></td>
													<td class="userinput">
														<select name="userManagerInfo.roleId" id="roleId"
															class="inputtext" style="width: 105%">
															<c:forEach items="${roleList}" var="treeHtml">
																<option value="${treeHtml.roleId}">
																	${treeHtml.roleName}
																</option>
															</c:forEach>
														</select>
													</td>
													<td class="userzlkongbai"></td>
												</tr>
												<tr>
													<td class="xytd2 userzljiange"></td>
													<td class="usertitle">
														用户描述：
													</td>
													<td class="userzljiange"></td>
													<td class="userinput">
														<textarea class="inputarea" name="userManagerInfo.note"
															id="TxtRemark"></textarea>
													</td>
													<td class="userzlkongbai"></td>
												</tr>
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle">
														真实姓名：
													</td>
													<td class="userzljiange"></td>
													<td class="userinput">
														<input id="TxtTrueName" name="userManagerInfo.realName"
															type="text" class="inputtext" maxlength="50" />
													</td>
													<td class="userzlkongbai"></td>
												</tr>
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle">
														电子邮件：
													</td>
													<td class="userzljiange"></td>
													<td class="userinput">
														<input name="userManagerInfo.email" id="TxtEmail"
															type="text" class="inputtext" maxlength="256" />
													</td>
													<td class="userzlkongbai"></td>
												</tr>
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle">
														手机号码：
													</td>
													<td class="userzljiange"></td>
													<td class="userinput">
														<input name="userManagerInfo.phone" id="txtCellPhone"
															type="text" class="inputtext" maxlength="16" />
													</td>
													<td class="userzlkongbai"></td>
												</tr>
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle">
														电话号码：
													</td>
													<td class="userzljiange"></td>
													<td class="userinput">
														<input name="userManagerInfo.tel" id="TxtPhone"
															type="text" class="inputtext" maxlength="20" />
													</td>
													<td class="userzlkongbai"></td>
												</tr>
											</table>
											<div class="em15"></div>
										</div>
									</div>
									<div class="em25"></div>
									<div class="em35 lineh35">
										<div class="floatleft graybar"></div>
										<div class="floatleft paddingL10">
											数据&登录权限
										</div>
										<div class="floatright pdr">
											<input type="button" class="btn2" value="数据权限" onclick="datePriv()"/>
										</div>
									</div>
									<div class="em15"></div>
									<div class="widthall" style="padding: 1px 1px">
									<input type="hidden" id="dataTypeList" value='${dataTypeList}'>
									<input type="hidden" id="indexList" value='${indexList}'>
										<div class="divborder em175">
											<div class="em15"></div>
											<table class="indextable">
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle2">
														数据类型：
													</td>
													<td class="userzljiange"></td>
													<td class="red">
														<span id="dataStatus">未选</span>
													</td>
												</tr>
												<tr>
													<td class="xytd userzljiange"></td>
													<td class="usertitle2">
														登录权限：
													</td>
													<td class="userzljiange"></td>
													<td class="font10">
														<input type="hidden" id="isPcLogin"
															value="${userManagerInfo.isPcLogin}">
														<input type="hidden" id="isMobLogin"
															value="${userManagerInfo.isMobLogin}">
														<input type="hidden" id="isSendMessage"
															value="${userManagerInfo.isSendMessage}">
														<input type="checkbox" id="u_isPcLogin"
															name="userManagerInfo.isPcLogin" />
														<label for="rblSiteType_0">
															PC登录
														</label>
														<input type="checkbox" id="u_isMobLogin"
															name="userManagerInfo.isMobLogin" />
														<label for="rblSiteType_0">
															手机登录
														</label>
														<input type="checkbox" id="u_isSendMessage"
															name="userManagerInfo.isSendMessage" />
														<label for="rblSiteType_0">
															微信信息发送
														</label>
													</td>
												</tr>
											</table>
										</div>
									</div>
								</div>
								<div class="floatleft userjiange"></div>
								<div class="floatleft userquanxian">
									<div class="em35 lineh35">
										<div class="floatleft graybar"></div>
										<div class="floatleft paddingL10">
											场所权限
										</div>
									</div>
									<div class="em15"></div>
									<div class="floatleft width33p em50 borderlt lineh50">
										<span class="floatleft pdl">集团列表</span><span
											class="inblock floatright pdr"><input id="jinjituan"
												type="checkbox" />不含下属场所</span>
									</div>
									<div class="floatleft width66p em50 borderltr lineh50">
										<span class="floatleft pdl">地区列表</span><span
											class="inblock floatright pdr"><input
												onchange="checkAllDy()" id="diyuSite" type="checkbox" />全选
											&nbsp;&nbsp;<input id="jindiyu" type="checkbox" />不含下属场所</span>
									</div>
									<div class="cleardiv"></div>
									<div class="floatleft width33p em165 bordertlb">
										<div class="em15"></div>
										<div id="jtResultDiv" class="em135 autoflow pdl">
											<c:forEach items="${jtList}" var="jtSiteInfo">
												<div id="jt_${jtSiteInfo.siteid}" class="em45">
													<div class="em35">
														<div id="${jtSiteInfo.siteid}"
															onclick="selfCheck('${jtSiteInfo.siteid}')"
															class="floatleft divcheck">
															<div class="divchecked hide"></div>
														</div>
														<span class="floatleft kongxi"></span>
														<div title="${jtSiteInfo.sitename}"
															class="em35 lineh35 floatleft paddingL1em subbus"
															style="width: 60%">
															${jtSiteInfo.sitename}
														</div>
													</div>
												</div>
											</c:forEach>
										</div>
										<div class="em15"></div>
									</div>
									<div class="floatleft width66p em165 divborder">
										<div class="em15"></div>
										<div id="dqResultDiv" class="em135 autoflow pdl">
											<c:forEach items="${dyList}" var="siteAllInfo">
												<div id="dy_${siteAllInfo.siteid}"
													class="floatleft em45 width50p">
													<div class="em35">
														<div id="${siteAllInfo.siteid}"
															onclick="selfCheck('${siteAllInfo.siteid}')"
															class="floatleft divcheck">
															<div class="divchecked hide"></div>
														</div>
														<span class="floatleft kongxi"></span>
														<div title="${siteAllInfo.sitename}"
															class="em35 lineh35 floatleft paddingL1em subbus"
															style="width: 60%">
															${siteAllInfo.sitename}
														</div>
													</div>
												</div>
											</c:forEach>
										</div>
										<div class="em15"></div>
									</div>
									<div class="cleardiv"></div>
									<div class="em25"></div>
									<div class="cleardiv"></div>
									<div id="shaixuanqu" class="em400">
										<div class="floatleft width33p em400 bordertlb">
											<div class="em50 borderlt bgefefef lineh50">
												<span class="floatleft pdl">广场选择</span><span
													class="inblock floatright pdr"><span id="shaixuan"
													class="hand" onclick="shaixuan()";>筛选﹀</span> </span>
											</div>
											<div class="em50 bgf6f6f6">
												<div class="em10"></div>
												<div class="em35"
													style="padding-left: 1em; padding-right: 1em">
													<div class="lineh35 whitediv heigthall">
														<div class="floatleft" style="width: 85%">
															<input type="text" id="gc_gcSiteName"
																class="widthall whiteborder" />
														</div>
														<div class="floatright heigthall hand" style="width: 12%">
															<img onclick="showLoading();searchGc();"
																src="images/research.png"
																style="width: 90%; height: 65%; vertical-align: middle" />
														</div>
													</div>
												</div>
											</div>
											<div class="em300">
												<input type="hidden" id="firstSiteId">
												<div class="em15"></div>
												<div id="gcResultDiv" class="em270 autoflow pdl">
													<c:forEach items="${gcList}" var="gcSiteInfo">
														<div class="em45">
															<div class="em35">
																<c:choose>
																	<c:when test="${gcSiteInfo.sitestaus==1}">
																		<div id="${gcSiteInfo.siteid}"
																			onclick="leftCheck('${gcSiteInfo.siteid}','yixuanzeDiv')"
																			class="floatleft divcheck">
																			<div class="divchecked hide"></div>
																		</div>
																	</c:when>
																	<c:otherwise>
																		<div id="${gcSiteInfo.siteid}"
																			class="floatleft" style="width:2.1875em;height:2.1875em;border:1px solid #fff"></div>
																	</c:otherwise>
																</c:choose>
																<span class="floatleft kongxi"></span>
																<div id="right${gcSiteInfo.siteid}"
																	onclick="showLoading();rightGcCheck('${gcSiteInfo.siteid}')"
																	title="${gcSiteInfo.sitename}"
																	class="em35 lineh35 floatleft paddingL1em sitecheck subbus"
																	style="width: 60%">
																	${gcSiteInfo.sitename}
																</div>
															</div>
														</div>
													</c:forEach>
												</div>
												<div class="em15"></div>
											</div>
										</div>
										<div id="shaixuanqian" class="floatleft width66p7">
											<div class="floatleft width50p em400 bordertlb">
												<div class="em50 borderlt bgefefef lineh50">
													<span id="dpxz" class="floatleft pdl">店铺选择</span>
												</div>
												<div class="em50 bgf6f6f6">
													<div class="em10"></div>
													<div class="em35"
														style="padding-left: 1em; padding-right: 1em">
														<div class="lineh35 whitediv heigthall">
															<div class="floatleft" style="width: 85%">
																<input type="text" id="dp_dpSiteName"
																	class="widthall whiteborder" />
															</div>
															<div class="floatright heigthall hand" style="width: 12%">
																<img onclick="showLoading();searchDp();"
																	src="images/research.png"
																	style="width: 90%; height: 65%; vertical-align: middle" />
															</div>
														</div>
													</div>
												</div>
												<div class="em300">
													<div class="em15"></div>
													<div id="dpResultDiv" class="em270 autoflow pdl">
													</div>
													<div class="em15"></div>
												</div>
											</div>
											<div class="floatleft width50p em400">
												<div id="shaixuanSc" class="em50 borderltr lineh50">
													<span class="floatleft pdl">广场&店铺列表</span><span
														class="inblock floatright pdr"><span id="qingkong"
														class="hand orange" onclick="qingkong();">清空</span> </span>
												</div>
												<div class="divborder">
													<div class="em25"></div>
													<div id="yixuanzeDiv" class="em300 autoflow pdl">
													</div>
													<div class="em25"></div>
												</div>
											</div>
										</div>
										<div id="shaixuanhou" class="floatleft width66p7 em400"
											style="display: none">
											<div class="em50 bgefefef"></div>
											<div class="divborder">
												<div class="em25"></div>
												<div class="em300 autoflow">
													<div id="diqu" class="lineh45" style="padding-left: 1em">
														地区：
														<span><a id="dq_buxian"
															href="javascript:showLoading();diquClick('-1')" class="clickDiqu">不限</a> </span>
														<c:forEach items="${squareChange.dqList}" var="gcModel">
															<span class="kongxi"></span>
															<a
																href="javascript:showLoading();diquClick('${gcModel.dqSiteId}')">${gcModel.dqSiteName}</a>
														</c:forEach>
													</div>
													<div class="lineh45" style="padding-left: 1em">
														区划：
														<input type="hidden" id="guojia"
															value='${squareChange.guojia}'>
														<select id="guojiaCombo" class="em35"
															onchange="showLoading();comboChange(0);">
															<option value="-1">
																请选择
															</option>
														</select>
														<span style="width: 1em; display: inline-block"></span>
														<select id="shengCombo" class="em35"
															onchange="showLoading();comboChange(1);">
															<option>
																请选择
															</option>
														</select>
														<span style="width: 1em; display: inline-block"></span>
														<select id="shiCombo" class="em35"
															onchange="showLoading();comboChange(2);">
															<option>
																请选择
															</option>
														</select>
														<span style="width: 1em; display: inline-block"></span>
														<select id="quCombo" class="em35"
															onchange="showLoading();comboChange(3);">
															<option>
																请选择
															</option>
														</select>
													</div>
												</div>
												<div class="em25"></div>
											</div>
										</div>
									</div>
									<div class="cleardiv"></div>
								</div>
							</div>
							<div class="em45 lineh45">
								<input type="button" class="btn textcenter"
									onclick="location.href='userManager'" value="返回" />
								<span class="inblock w10em defaultheight"></span>
								<input id="bcbtn" type="button" class="btn textcenter" value="保存"
									onclick="addSub(0)" />
								<input id="bczhong" type="button" class="btn textcenter" value="保存中" style="display:none" />
							</div>
							<div class="em25"></div>
						</div>
						<div class="floatleft div25"></div>
					</div>
				</div>
			</div>
			<div class="cleardiv">
			</div>
		</div>
		<input type="hidden" name="userManagerInfo.jtSiteId" id="f_jtSiteId" />
		<input type="hidden" name="userManagerInfo.jinjituan" id="f_jinjituan" />
		<input type="hidden" name="userManagerInfo.dySiteId" id="f_dySiteId" />
		<input type="hidden" name="userManagerInfo.jindiyu" id="f_jindiyu" />
		<input type="hidden" name="userManagerInfo.gcSiteId" id="f_gcDpSiteId" />
		<input type="hidden" name="userManagerInfo.dataList" id="dataString">
		</form>
		<jsp:include page="footer.jsp"></jsp:include>
		<!-- 选广场 -->
		<form action="ajaxSearchGc">
			<!-- 商圈 -->
			<input type="hidden" id="gc_sqSiteId">
			<!-- 省市区 -->
			<input type="hidden" id="gc_countryId">
			<input type="hidden" id="gc_provinceId">
			<input type="hidden" id="gc_cityId">
			<input type="hidden" id="gc_areaId">
			<!-- 地区 -->
			<input type="hidden" id="gc_dqSiteId">
			<!-- 搜索栏中广场名称 -->
			<input type="hidden" id="gc_gcInput">
		</form>
	</body>
</html>
